#pragma once
#include <hash_map>
#include <iostream>

#include "Game.h"
#include "EventListener.h"
#include "NPC.h"

#include "Mapa.h"

using namespace std;
class actorManager : public EventListener
	{
	private:
		hash_map<ID,NPC*> npcs;
		Mapa *mapa;
	public:
		actorManager(void);
		virtual bool onEvent(Event *e);
		void update(float speedFactor);
		~actorManager(void);
	private:
		void addActor(Actor *a);
		void onActorMovement(Actor *a,float destinoX, float destinoY);
	};
